##############################################################
# These constants are used in various files.
# If you need to define a value that will be used in those files,
# just define it here rather than copying it across each file, so
# that it will be easy to change it if you need to.
##############################################################

########################################################
##  PARTY SLOTS            #############################
########################################################
slot_party_type              = 0  #spt_caravan, spt_town, spt_castle

slot_party_ai_state          = 4

slot_town_belongs_to_kingdom = 6
slot_town_lord               = 7

slot_town_center        = 10
slot_town_castle        = 11
slot_town_tavern        = 13
slot_town_store         = 14
slot_town_gate          = 15
slot_town_arena         = 16
slot_town_tavernkeeper  = 20
slot_town_weaponsmith   = 21
slot_town_armorer       = 22
slot_town_merchant      = 23
slot_town_mercs         = 40
slot_town_export_good   = 41
slot_town_export_rate   = 42
slot_town_export_good_2 = 43
slot_town_export_rate_2 = 44
slot_town_import_good   = 45
slot_town_import_rate   = 46
slot_town_import_good_2 = 47
slot_town_import_rate_2 = 48

slot_castle_exterior    = 10
slot_castle_interior    = 11

slot_town_arena_melee_mission_tpl = 78
slot_town_arena_torny_mission_tpl = 79
slot_town_arena_melee_1_num_teams = 80
slot_town_arena_melee_1_team_size = 81
slot_town_arena_melee_2_num_teams = 82
slot_town_arena_melee_2_team_size = 83
slot_town_arena_melee_3_num_teams = 84
slot_town_arena_melee_3_team_size = 85
slot_town_arena_melee_cur_tier    = 86
slot_town_arena_template	  = 87

#slot_party_type values
spt_caravan          = 1
spt_castle           = 2
spt_town             = 3
spt_forager          = 4
spt_army             = 5
spt_patrol           = 6
spt_raider           = 7
spt_scout            = 8
spt_kingdom_caravan  = 9

#slot_party_ai_state values
spai_undefined               = -1
spai_besieging_center        = 1
spai_returning_prisoners     = 2
spai_returning               = 3
spai_patrolling              = 4
spai_trading_within_kingdom  = 5
spai_raiding                 = 6


########################################################
##  SCENE SLOTS            #############################
########################################################
slot_scene_visited      = 0


########################################################
##  TROOP SLOTS            #############################
########################################################
#slot_troop_role         = 0  # 10=Kingdom Lord

slot_troop_faction      = 1 
slot_troop_occupation   = 2  # 0 = free, 1 = merchant
slot_troop_duty         = 3  # Kingdom duty, 0 = free
slot_troop_state        = 4  
slot_troop_met          = 5

slot_troop_cur_party    = 10

########################################################
##  QUEST SLOTS            #############################
########################################################


########################################################
##  PARTY TEMPLATE SLOTS   #############################
########################################################

########################################################
rel_enemy   = 0
rel_neutral = 1
rel_ally    = 2

# Conversation types
ct_simple_encounter = 0
ct_castle_siege_attack = 1
ct_castle_siege_defend = 2


#Talk contexts
tc_town_talk          = 0
tc_party_encounter    = 1
tc_join_battle_ally   = 2
tc_join_battle_enemy  = 3
tc_castle_commander   = 4
tc_siege_commander    = 5
tc_hero_freed         = 6
tc_hero_defeated      = 7


main_factions_begin = "fac_swaidans"
main_factions_end   = "fac_khergits"

marnid_inn_entry = 2
borcha_inn_entry = 3
ymira_inn_entry  = 4

lord_quests_begin = "qst_deliver_message"
lord_quests_end   = "qst_escort_merchant_caravan"

governer_quests_begin = "qst_deliver_message"
governer_quests_end   = "qst_escort_merchant_caravan"

merchant_quests_begin  = "qst_escort_merchant_caravan"
merchant_quests_end    = "qst_hunt_down_river_pirates"

towns_begin = "p_town_1"
towns_end = "p_castle_1"

castles_begin = "p_castle_1"
castles_end = "p_salt_mine"

centers_begin = towns_begin
centers_end   = castles_end

spawn_points_begin = "p_zendar"
spawn_points_end = "p_spawn_points_end"

governers_begin = "trp_town_1_ruler_a"
governers_end = "trp_town_1_arena_master"

merchants_begin = "trp_zendar_merchant"
merchants_end = "trp_merchants_end"

regular_troops_begin       = "trp_novice_fighter"
regular_troops_end         = "trp_tournament_master"

swadian_merc_parties_begin = "p_town_1_mercs"
swadian_merc_parties_end   = "p_town_8_mercs"

vaegir_merc_parties_begin  = "p_town_8_mercs"
vaegir_merc_parties_end    = "p_zendar"

arena_masters_begin    = "trp_town_1_arena_master"
arena_masters_end      = "trp_zendar_armorer"

armor_merchants_begin  = "trp_zendar_armorer"
armor_merchants_end    = "trp_zendar_weaponsmith"

weapon_merchants_begin = "trp_zendar_weaponsmith"
weapon_merchants_end   = "trp_zendar_tavernkeeper"

tavernkeepers_begin    = "trp_zendar_tavernkeeper"
tavernkeepers_end      = "trp_zendar_merchant"

goods_merchants_begin  = "trp_zendar_merchant"
goods_merchants_end    = "trp_merchants_end"

num_max_river_pirates = 25
num_max_zendar_peasants = 25
num_max_zendar_manhunters = 10

num_max_dp_bandits = 10
num_max_refugees = 10
num_max_deserters = 10

num_max_militia_bands = 15
num_max_armed_bands = 12

num_max_vaegir_punishing_parties = 20
num_max_rebel_peasants = 25

num_max_frightened_farmers = 50
num_max_undead_messengers  = 20

num_forest_bandit_spawn_points = 1
num_mountain_bandit_spawn_points = 1
num_steppe_bandit_spawn_points = 1
num_black_khergit_spawn_points = 1
num_sea_raider_spawn_points = 2

peak_prisoner_trains = 4
peak_kingdom_caravans = 12


